package com.example.entity.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

    public static final int SUCCESS = 1000;//请求成功
    public static final int ERROR = 4000;//请求异常
    public static final int ERROR_404 = 4004;//请求异常
    public static final int PARAMETER_INVALID = 1001;//参数无效
    public static final int PARAMETER_EMPTY = 1002;//参数为空
    public static final int PARAMETER_TYPE_ERROR = 1003;//参数类型错误
    public static final int PARAMETER_MISSING = 1004;//参数缺失
    public static final int USER_NOT_SING_IN = 2001;//用户未登录
    public static final int DATA_NULL = 5001;//数据为空

    private int code;
    private String msg="";
    private HashMap<?, ?> map;
}
